<template>
  <div><input v-model="fullName" type="text" /></div>
</template>

<script>
export default {
  data() {
    return {
      name: "小米",
    };
  },
  computed: {
    fullName: {
      set(v) {
        console.log(15, v);
      },
      get() {
        console.log(18, this.name);
        return "黄" + this.name;
      },
    },
  },
};
</script>

<style>
</style>